import Vue from 'vue'
import VueRouter from 'vue-router'
import Page from '../views/Page.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Page',
    component: Page,
    children: [
      {
        path: '/',
        name: 'Home',
        component: () =>
          import(/* webpackChunkName: "home" */ '../views/Home/Home.vue')
      },
      {
        path: '/zhongzhixinxi',
        name: 'zhongzhixinxi',
        component: () =>
          import(
            /* webpackChunkName: "zhongzhixinxi" */ '../views/map/zhongzhi/index.vue'
          )
      },
      {
        path: '/yangzhixinxi',
        name: 'yangzhixinxi',
        component: () =>
          import(
            /* webpackChunkName: "zhongzhixinxi" */ '../views/map/yangzhi/index.vue'
          )
      },
      {
        path: '/shichangxinxi',
        name: 'shichangxinxi',
        component: () =>
          import(
            /* webpackChunkName: "shichangxinxi" */ '../views/ShiChangXinXi/index.vue'
          )
      },
      {
        path: '/shenghuoxinxi',
        name: 'shenghuoxinxi',
        component: () =>
          import(
            /* webpackChunkName: "shichangxinxi" */ '../views/ShengHuoXinXi/index.vue'
          )
      },
      {
        path: '/yonggongxinxi',
        name: 'yonggongxinxi',
        component: () =>
          import(
            /* webpackChunkName: "shichangxinxi" */ '../views/YongGongXinXi/index.vue'
          )
      },
      {
        path: '/zhengcefagui',
        name: 'zhengcefagui',
        component: () =>
          import(
            /* webpackChunkName: "shichangxinxi" */ '../views/ZhengCeFaGui/index.vue'
          )
      }
    ]
  }
  // {
  //   path: '/about',
  //   name: 'About',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
]

const router = new VueRouter({
  routes
})

export default router
